package com.java.jvalidator.framework.config;

import java.util.ArrayList;
import java.util.List;

public class RuleComposite {
	private String id;
	private List<RuleConfig> rules = new ArrayList<RuleConfig>();

	RuleComposite(String id) {
		this.id = id;
	}

	String getId() {
		return this.id;
	}

	List<RuleConfig> getRules() {
		return this.rules;
	}

	void addRule(RuleConfig config) {
		this.rules.add(config);
	}

	void addRules(List<RuleConfig> rules) {
		this.rules.addAll(rules);
	}
}
